Ext.define('Admin.view.etask.Detail', {
    extend: 'Admin.view.Detail',
    alias: 'widget.ETaskdetail',
        
    componentCls: 'etask-detail',
    bodyPadding: 0,
    bind:{title : '任务{theObj.id}'} ,

    controller: 'detail',
    
    afterRender: function(ct, position) {
    this.callParent();
    },
    items: [ 
        {
    listeners: {
    render: function(p){
    p = p.getEl();
    var me= this.up();
    me.h0=p.getHeight();
    p.on('scroll', function(e, t){
    me.onscroll(t.scrollTop,t.clientHeight);
    }, p);
    }
    },
    title: 'Panel 0',
    flex: 2,
    frame: false,
    xtype: 'container',
    //layout: 'auto',
    style: {
    overflow: 'auto'
    },
    
    items: [
    {
    bind:{title : '任务详细: {theObj.id}'} ,
    margin : '0 0 10 0',
    cls : 'nav_pos',
    reference : 'form',
    bodyPadding : 10,
    fieldDefaults : {
    labelAlign : 'right',
    labelWidth : 100,
    padding : 3
    },
    xtype: 'formpanel',
    items: [
    
    {
        xtype: 'fieldset',
        defaults : {
                clearIcon: true,
                labelWidth: '35%',
                xtype:'textfield'
            },
        items:[
        {
        label: '任务描述',
        clearIcon: true,
        bind: '{theObj.description}'
        },	{
        label: '任务名称',
        bind: '{theObj.title}'
        }	]
    },
    {
        xtype: 'fieldset',
        defaults : {
            clearIcon: true,
            labelWidth: '35%',
            xtype:'textfield'
        },
        items:[
        {
        label: 'uid',
        bind: '{theObj.uid}'
        }	]
    }]}]
     }]
    });